package com.liangzhong.modules.Main.command
{
	import com.common.utils.Debug;
	import com.liangzhong.constants.ApplicationConstants;
	import com.liangzhong.model.AppData;
	import com.liangzhong.model.main.MatchReq;
	import com.liangzhong.modules.Main.Mediator.LogicMediator;
	import com.liangzhong.proxy.logic.LogicProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	/**
	 *一般逻辑控制 
	 * @author lxh
	 * 
	 */	
	public class LogicCommand extends SimpleCommand
	{
		public function LogicCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var logicProxy :LogicProxy = facade.retrieveProxy(LogicProxy.ProxyName) as LogicProxy;
			switch(notification.getName())
			{
				case ApplicationConstants.Public_Drop_Time://消掉冷却时间
				{
					logicProxy.dropTime(notification.getBody()as int);
					break;
				}
				case ApplicationConstants.Public_Match_Get_Award://比赛抽奖
				{
					logicProxy.getMatchAward(notification.getBody());
					break;
				}
				case ApplicationConstants.Public_Club_Get_Award_list://获取抽奖信息 抽奖表
				{
					logicProxy.getClubReward(notification.getBody());
					break;
				}
			}
		}
	}
}